From: Robert Lipe Date: Thu, 22 Dec 2016 01:00:37 +0000 (-0600) Subject: Implement va_copy for VS 2012 X-Git-Tag: archive/raspbian/1.10.0+ds-2+rpi1~1^2~12^2~9^2~9^2~9 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=be33a699cd2259ca9e011afb183230c2dfe5fe00;p=gpsbabel.git Implement va_copy for VS 2012 va_copy is part of C++ 11, not supported by VS 2012 --- diff --git a/defs.h b/defs.h index df2df9c51..037fee7a0 100644 --- a/defs.h +++ b/defs.h @@ -105,6 +105,15 @@ # define strdup _strdup #endif +/* Workaround for lack of va_copy in Visual Studio 2012 and earlier */ +#if __WIN32__ +# if _MSC_VER +# if _MSC_VER < 1700 +# define va_copy(dest, src) ((dest) = (src)) +# endif +# endif +#endif + /* Turn off numeric conversion warning */ #if __WIN32__ # if _MSC_VER